Spread Windows Forms 17
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / CalcHelper Class / Max Method / Max(Double[],Int32,Int32) Method
The set of values.
The start index to compare.The total number of elements to compare.


In This Topic
    Max(Double[],Int32,Int32) Method
    In This Topic
    Returns the maximum value in a set of values.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Max( _
       ByVal values() As Double, _
       ByVal index As Integer, _
       ByVal length As Integer _
    ) As Double
    'Usage
     
    
    Dim values() As Double
    Dim index As Integer
    Dim length As Integer
    Dim value As Double
     
    value = CalcHelper.Max(values, index, length)
    public static double Max( 
       double[] values,
       int index,
       int length
    )

    Parameters

    values
    The set of values.
    index
    The start index to compare.The total number of elements to compare.
    length

    Return Value

    The maximum value.
    See Also